package com.jgp.sys.query;

import java.util.ArrayList;

/**
 * 项目   sys
 * 作者   loufei
 * 时间   2018/3/13
 */
public class OrderList extends ArrayList<Order> {
    public OrderList addOrder(String name, String direction) {
        this.add(new Order(name, OrderDirection.valueOf(direction.toUpperCase())));
        return this;
    }

    public OrderList addOrder(String name, OrderDirection direction) {
        this.add(new Order(name, direction));
        return this;
    }
}
